import axiosData from "@/api/axios";

export default {
  /**
   * @description: 获取备件入库列表 *代表必填
   * @param {String/Number} page *
   * @param {String/Number} size *
   * @param {Object} entity {} *
   * @return {Array}
   */
  queryPageList(params) {
    return axiosData.post("/v3/agricultural-equipment/v1/sparePartIO/queryPageList", params);
  },
  /**
   * @description: 新增备件入库
   * @param {Object} params *
   * @return {Object}
   */
  add(params) {
    return axiosData.post("/v3/agricultural-equipment/v1/sparePartIO/add", params);
  },
  /**
   * @description: 编辑备件入库
   * @param {Object} params *
   * @return {Object}
   */
  edit(params) {
    return axiosData.post("/v3/agricultural-equipment/v1/sparePartIO/edit", params);
  },
  /**
   * @description: 批量删除备件入库
   * @param {Object} sparePartIOCodeList *
   * @return {Object}
   */
  delList(params) {
    return axiosData.get("/v3/agricultural-equipment/v1/sparePartIO/delBySparePartIOCodeList", params);
  }
};
